package net.sureon.dao;

import java.util.Date;

import net.sureon.common.I18nSupport;

public class BalanceOperation {
	public static final String OPR_TYPE_SAVE = "Save";
	public static final String OPR_TYPE_CONSUME = "Consume";
	private long operationID;
	private long companyID;
	private Date operationDate;
	private String operationType;
	private float amount;
	private float balance;
	private String comments;
	
	/*
	 * only display the costChange.jsp
	 */
	private String siteURL;
	private String companyFullName;
	
	/**
	 * @return the operationID
	 */
	public long getOperationID() {
		return operationID;
	}
	/**
	 * @param operationID the operationID to set
	 */
	public void setOperationID(long operationID) {
		this.operationID = operationID;
	}
	/**
	 * @return the companyID
	 */
	public long getCompanyID() {
		return companyID;
	}
	/**
	 * @param companyID the companyID to set
	 */
	public void setCompanyID(long companyID) {
		this.companyID = companyID;
	}
	/**
	 * @return the operationDate
	 */
	public Date getOperationDate() {
		return operationDate;
	}
	/**
	 * @param operationDate the operationDate to set
	 */
	public void setOperationDate(Date operationDate) {
		this.operationDate = operationDate;
	}
	/**
	 * @return the operationType
	 */
	public String getOperationType() {
		return operationType;
	}
	
	public String getLocalizedOperationType(){
		return I18nSupport.getMessage(operationType);
	}
	/**
	 * @param operationType the operationType to set
	 */
	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}
	/**
	 * @return the amount
	 */
	public float getAmount() {
		return amount;
	}
	/**
	 * @param amount the amount to set
	 */
	public void setAmount(float amount) {
		this.amount = amount;
	}
	/**
	 * @return the balance
	 */
	public float getBalance() {
		return balance;
	}
	/**
	 * @param balance the balance to set
	 */
	public void setBalance(float balance) {
		this.balance = balance;
	}
	/**
	 * @return the comments
	 */
	public String getComments() {
		return comments;
	}
	/**
	 * @param comments the comments to set
	 */
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getSiteURL() {
		return siteURL;
	}
	public void setSiteURL(String siteURL) {
		this.siteURL = siteURL;
	}
	public String getCompanyFullName() {
		return companyFullName;
	}
	public void setCompanyFullName(String companyFullName) {
		this.companyFullName = companyFullName;
	}
}
